#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
#include<math.h>
int sb(int n)
{
	int i = 0;
	int k = sqrt(n);
	for (i = 2; i <= k; i++)
	{
		if (n % i == 0)
			return 0;
	}
	return n;
}

int main()
{
	int n = 0;
	int i = 4;
	int j = 2, z = 0, x = 0;
	int b = 0, count = 0, count2 = 0;
	int a[40] = { 0 };
	for (i = 4; i <= 40; i += 2)
	{
		count = 0;
		for (j = 2; j < i; j++)
		{
			b = sb(j);
			if (b)
			{
				a[count++] = b;
			}
		}
		while (1)
		{
			for(z=0;z<count;z--)
				for (x = 0; x <count; x++)
				{
					if (a[z] + a[x] == i)
					{
						printf("%d=%d+%d  ", i, a[z], a[x]);
						count2++;
					}
					if (count2 == 1)
					{
						count2 = 0;
						goto zd;
					}
				}
		}
	zd:continue;
	}
	return 0;
}